import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
// 这样引入全局样式规范些，up直接在index.html中引入，容易混杂
import '@/styles/common.css'

import router from './router/index.js'
import store from './store'


// 1. 按需导入vant
// import { Button } from 'vant';
// 改版，自制插件，遍历app.use
import getVant from './plugins/index'
// 2. 引入组件样式
import 'vant/lib/index.css';

const app=createApp(App)

app.use(router)
app.use(store)

// app.use(Button)
getVant(app)


app.mount('#app')
// createApp(App).mount('#app')  这句不肯定不好使，黑马和叮叮都没用
